#include <gui/screen3_screen/Screen3View.hpp>
#include <gui/screen3_screen/Screen3Presenter.hpp>

Screen3Presenter::Screen3Presenter(Screen3View &v)
    : view(v)
{
}

void Screen3Presenter::activate()
{
}

void Screen3Presenter::deactivate()
{
}
void Screen3Presenter::model_view(uint8_t flag, ...)
{
    int32_t para[10];
    va_list argptr;
    va_start(argptr, flag);

    if (flag == 1)
    {
        para[0] = va_arg(argptr, int32_t);
        view.model_view(flag, para[0]);
    }
    else if (flag == 3)
    {
        para[0] = va_arg(argptr, int32_t);
        para[1] = va_arg(argptr, int32_t);
        para[2] = va_arg(argptr, int32_t);
        para[3] = va_arg(argptr, int32_t);
        view.model_view(flag, para[0], para[1], para[2], para[3]);
    }

    va_end(argptr);
}